<html>
<head><meta charset="utf-8"><title>&#x27;rustc&#x27; has overflowed its stack · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/&#x27;rustc&#x27;.20has.20overflowed.20its.20stack.html">&#x27;rustc&#x27; has overflowed its stack</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="167007227"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/%27rustc%27%20has%20overflowed%20its%20stack/near/167007227" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Federico Poli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/&#x27;rustc&#x27;.20has.20overflowed.20its.20stack.html#167007227">(May 31 2019 at 15:35)</a>:</h4>
<p>Any suggestion regarding how to debug a <code>'rustc' has overflowed its stack</code>? (in <code> ... error: Could not compile rustc_allocator</code>)</p>



<a name="167033945"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/%27rustc%27%20has%20overflowed%20its%20stack/near/167033945" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/&#x27;rustc&#x27;.20has.20overflowed.20its.20stack.html#167033945">(May 31 2019 at 20:58)</a>:</h4>
<p>You can use <code>gdb</code> to see what stack frames look like</p>



<a name="167033959"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/%27rustc%27%20has%20overflowed%20its%20stack/near/167033959" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/&#x27;rustc&#x27;.20has.20overflowed.20its.20stack.html#167033959">(May 31 2019 at 20:58)</a>:</h4>
<p>this will vary in terms of how helpful it is, but in case it was your own change, it will give you an indication whether the cause is your own code or something else.</p>



<a name="167171275"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/%27rustc%27%20has%20overflowed%20its%20stack/near/167171275" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Federico Poli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/&#x27;rustc&#x27;.20has.20overflowed.20its.20stack.html#167171275">(Jun 03 2019 at 09:32)</a>:</h4>
<p>Thanks, that helped! It seems that <code>try_print_visible_def_path</code> went into an infinite recursion; maybe because I changed the visibility of some imports</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>